/**   
* @Title: Ac.java 
* @Package com.example.as 
* @Description: TODO(��һ�仰�������ļ���ʲô) 
* @author haiabi@163.com  
* @date 2015-12-21 ����12:43:09 
* @version V1.0   
*/
package com.example.as;

import com.example.geterror.CrashHandler;
import com.example.geterror.EmailRunnable;
import com.example.geterror.InitAppValue;

import android.app.Application;

/** 
 * @ClassName: Ac 
 * @Description: TODO(������һ�仰��������������) 
 * @author haiabi@163.com
 * @date 2015-12-21 ����12:43:09 
 *  
 */
public class Ac extends Application {
 	@Override
	public void onCreate() {
		super.onCreate();
	 CrashHandler crashHandler = CrashHandler.getInstance();
		crashHandler.init(getApplicationContext());
		InitAppValue.init(this);
		InitAppValue value = InitAppValue.getInstance();
		EmailRunnable.setUser(value.getSendMailUserName());
		EmailRunnable.setPasswrod(value.getSendMailPassWord());
		EmailRunnable.setReceiver(value.getReceiveMailUserName());
		EmailRunnable.setMailhost(value.getSendMailHostUrl()); 
	}
}
